﻿var dataribbon = {
    selected: 0,
    tabs: [{
        title: '主页',
        groups: [{
            title: '粘贴板',
            tools: [{
                type: 'splitbutton',
                name: 'paste',
                text: 'Paste',
                iconCls: 'icon-paste-large',
                iconAlign: 'top',
                size: 'large',
                menuItems: [{
                    name: 'paste',
                    text: 'Paste',
                    iconCls: 'icon-paste'
                }, {
                    name: 'paste-special',
                    text: 'Paste Special...',
                    iconCls: 'icon-paste'
                }]
            }, {
                type: 'toolbar',
                dir: 'v',
                tools: [{
                    name: 'cut',
                    text: 'Cut',
                    iconCls: 'icon-cut'
                }, {
                    name: 'copy',
                    text: 'Copy',
                    iconCls: 'icon-copy'
                }, {
                    name: 'format',
                    text: 'Format',
                    iconCls: 'icon-format'
                }]
            }]
        }, {
            title: '字体',
            tools: [{
                type: 'toolbar',
                tools: [{
                    type: 'combobox',
                    valueField: 'text',
                    textField: 'text',
                    data: [{ text: 'Arial', selected: true }, { text: 'Century' }, { text: 'Tahoma' }],
                    width: 116,
                    panelHeight: 'auto',
                    editable: false
                }, {
                    type: 'combobox',
                    valueField: 'text',
                    textField: 'text',
                    data: [{ text: '8' }, { text: '12', selected: true }, { text: '14' }],
                    width: 40,
                    panelHeight: 'auto',
                    editable: false
                }]
            }, {
                type: 'toolbar',
                style: { marginLeft: '5px' },
                tools: [{
                    name: 'increase-font',
                    iconCls: 'icon-increase-font'
                }, {
                    name: 'decrease-font',
                    iconCls: 'icon-decrease-font'
                }]
            }, {
                type: 'toolbar',
                style: { clear: 'both', marginTop: '2px' },
                tools: [{
                    name: 'bold',
                    iconCls: 'icon-bold',
                    toggle: true
                }, {
                    name: 'italic',
                    iconCls: 'icon-italic',
                    toggle: true
                }, {
                    name: 'underline',
                    iconCls: 'icon-underline',
                    toggle: true
                }, {
                    name: 'strikethrough',
                    iconCls: 'icon-strikethrough',
                    toggle: true
                }, {
                    name: 'superscript',
                    iconCls: 'icon-superscript',
                    toggle: true
                }, {
                    name: 'subscript',
                    iconCls: 'icon-subscript',
                    toggle: true
                }]
            }, {
                type: 'toolbar',
                style: { clear: 'both' },
                tools: [{
                    name: 'case-font',
                    iconCls: 'icon-case-font'
                }, {
                    name: 'grow-font',
                    iconCls: 'icon-grow-font'
                }, {
                    name: 'shrink-font',
                    iconCls: 'icon-shrink-font'
                }]
            }]
        }, {
            title: '段落',
            dir: 'v',
            tools: [{
                type: 'toolbar',
                tools: [{
                    name: 'slign-left',
                    iconCls: 'icon-align-left',
                    toggle: true,
                    group: 'p1'
                }, {
                    name: 'align-center',
                    iconCls: 'icon-align-center',
                    toggle: true,
                    group: 'p1'
                }, {
                    name: 'align-right',
                    iconCls: 'icon-align-right',
                    toggle: true,
                    group: 'p1'
                }, {
                    name: 'align-justify',
                    iconCls: 'icon-align-justify',
                    toggle: true,
                    group: 'p1'
                }]
            }, {
                type: 'toolbar',
                style: { marginTop: '2px' },
                tools: [{
                    name: 'bullets',
                    iconCls: 'icon-bullets'
                }, {
                    name: 'numbers',
                    iconCls: 'icon-numbers'
                }]
            }]
        }, {
            title: '编辑',
            dir: 'v',
            tools: [{
                type: 'splitbutton',
                name: 'find',
                text: 'Find',
                iconCls: 'icon-find',
                menuItems: [{
                    name: 'find',
                    text: 'Find',
                    iconCls: 'icon-find'
                }, {
                    name: 'go',
                    text: 'Go to...',
                    iconCls: 'icon-go'
                }]
            }, {
                name: 'replace',
                text: 'Replace',
                iconCls: 'icon-replace'
            }, {
                type: 'menubutton',
                name: 'select',
                text: 'Select',
                iconCls: 'icon-select',
                menuItems: [{
                    name: 'selectall',
                    text: 'Select All',
                    iconCls: 'icon-selectall'
                }, {
                    name: 'select-object',
                    text: 'Select Objects',
                    iconCls: 'icon-select'
                }]
            }]
        }]
    }, {
        title: '插入',
        groups: [{
            title: '表格',
            tools: [{
                type: 'menubutton',
                name: 'table',
                text: 'Table',
                iconCls: 'icon-table-large',
                iconAlign: 'top',
                size: 'large'
            }]
        }, {
            title: '插图',
            tools: [{
                name: 'picture',
                text: 'Picture',
                iconCls: 'icon-picture-large',
                iconAlign: 'top',
                size: 'large'
            }, {
                name: 'clipart',
                text: 'Clip Art',
                iconCls: 'icon-clipart-large',
                iconAlign: 'top',
                size: 'large'
            }, {
                type: 'menubutton',
                name: 'shapes',
                text: 'Shapes',
                iconCls: 'icon-shapes-large',
                iconAlign: 'top',
                size: 'large'
            }, {
                name: 'smartart',
                text: 'SmartArt',
                iconCls: 'icon-smartart-large',
                iconAlign: 'top',
                size: 'large'
            }, {
                name: 'chart',
                text: 'Chart',
                iconCls: 'icon-chart-large',
                iconAlign: 'top',
                size: 'large'
            }]
        }]
    }]
};